package business.report.impl;

import business.report.EnvironmentalProtectionAcceptanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.EnvironmentalProtectionAcceptance;
import report.domain.EnvironmentalProtectionAcceptanceCriteria;
import report.mapper.EnvironmentalProtectionAcceptanceMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "eProtectionAcceptanceService")
public class EnvironmentalProtectionAcceptanceServiceImpl implements EnvironmentalProtectionAcceptanceService{
    @Autowired
    EnvironmentalProtectionAcceptanceMapper environmentalProtectionAcceptanceMapper;

    @Override
    public List<EnvironmentalProtectionAcceptance> getEnvironmentalProtectionAcceptance() {
        EnvironmentalProtectionAcceptanceCriteria criteria = new EnvironmentalProtectionAcceptanceCriteria();
        criteria.createCriteria().getAllCriteria();
        return environmentalProtectionAcceptanceMapper.selectByExample(criteria);
    }
}
